package cn.dglydrpy.study.mmail.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
/**
 * basePackages 指定Fegin接口的路径
 */
@EnableFeignClients(basePackages = "cn.dglydrpy.study.mmail.order.feign")
// 放开注册中心
@EnableDiscoveryClient
// 指定Mapper接口对应的路径
@MapperScan("cn.dglydrpy.study.mmail.order.dao")
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }

}
